#ifndef GRASS_H
#define GRASS_H

#include <string>
#include <cstdlib>
#include <GL/glew.h>
#include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>
#include "Functions.h"
#include "Structures.h"

class Grass {

public:
    Grass(std::string filename, std::string alphaFilename);
    void render(vec3 camPos, vec3 grassPos);
    void setupIndices(vec3 camPos, vec3 grassPos, GLfloat roatateAngle);
private:
    GLuint shaderProg;
    static bool shaderLoaded;
    GLuint vboID;
    GLuint indexID;
    GLuint texID;
    GLuint alphaID;
    GLuint *ind1;
    GLuint *ind2;
};


#endif // GRASS_H
